<template>
  <div class="modelitem-con">
    <!--推荐功能-->
    <el-row :gutter="20" class="modelitem-top">
      <p class="modelitem-goodfun">推荐功能</p>
      <el-col :span="8" style="margin-top:10px" v-for="(item, idx) in topfun" :key="idx">
        <div class="modelitem-recommend" :style="{backgroundImage: 'url(' + item.BackgroundImage + ')'}">
          <div class="modelitem-recommend-left">
            <p>{{item.title}}</p>
            <p>{{item.con}}</p>
          </div>
          <a class="modelitem-more" :style="{color: item.color}">
            了解详情
            <i class="el-icon-arrow-right"></i>
          </a>
        </div>
      </el-col>
    </el-row>
    <!--应用功能-->
    <el-row :gutter="20" class="model-fun">
      <p class="modelitem-goodfun">应用功能</p>
      <el-col :span="5" v-for="(item,idx) in 6" :key="idx">
          <div class="model-fun-item">
            <router-link to="#">
              <div class="model-fun-item-left">
                <img src="../../assets/config_images/Group3.png" alt="">
              </div>
              <div class="model-fun-item-right">
                <span>腾讯云</span>
                <span>简介简介简介简介</span>
              </div>
            </router-link>
          </div>
      </el-col>
    </el-row>
  </div>
</template>
<script>
export default {
  data() {
    return {
      topfun: [
        {
          id: 0,
          title: "新功能上线了",
          con: "程序猿们又开始努力啦...",
          color: '#4195EE',
          BackgroundImage: require("../../assets/config_images/Group3.png")
        },
        {
          id: 1,
          title: "新功能上线了",
          con: "程序猿们又开始努力啦...",
          color: '#ED8D42',
          BackgroundImage: require("../../assets/config_images/Group1.png")
        },
        {
          id: 2,
          title: "新功能上线了",
          con: "程序猿们又开始努力啦...",
          color: '#33E2DA',
          BackgroundImage: require("../../assets/config_images/Group2.png")
        }
      ]
    };
  }
};
</script>
<style lang="scss" scoped>
$topheight: 120px;
$funheight: 80px;
$bg: rgba(255, 255, 255, 1);
.modelitem-con {
  .modelitem-top {
    width: 100%;
    height: auto;
    padding: 20px 10px;
    background: $bg;
  }
  .modelitem-goodfun {
    width: 100%;
    height: 30px;
    line-height: 30px;
  }
  .modelitem-recommend {
    width: 100%;
    height: $topheight;
    color: #ffffff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px;
    background-size: cover;
    .modelitem-recommend-left {
      p:nth-child(2) {
        font-size: 14px;
      }
    }
  }

  .modelitem-more {
    width: 30%;
    height: 36px;
    background: $bg;
    border-radius: 3px;
    text-align: center;
    line-height: 36px;
    color: #4195ee;
    font-size: 14px;
  }
}
.model-fun {
  width: 100%;
  height: auto;
  background: $bg;
  margin-top: 20px;
  padding: 6px 16px 40px;
  .model-fun-item, a {
    width: 92%;
    height: $funheight;
    border-radius: 53px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    margin-top: 20px;
    .model-fun-item-left {
      width: 48px;
      height: 48px;
      border-radius: 24px;
      overflow: hidden;
      img {
        width: 100%;
        height: 100%;
      }
    }
    .model-fun-item-right {
      width: auto;
      height: 40px;
      display: flex;
      flex-direction: column;
      margin-left: 20px;
      justify-content: space-between;
      span:nth-child(2) {
        color: #59607B;
        font-size: 14px;
      }
    }
  }
  a {
    background:rgba(255,255,255,1);
    box-shadow: 0px 0px 7px 0px rgba(0,0,0,0.1);
  }
}
</style>
